<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('信息登记')" />
    <style>
        .label-tip{
            padding-bottom: 5px ;
            border-bottom: 2px solid #f5f5f5;
            margin: 15px 0;
        }
    </style>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-register-add">
        <h4 class="label-tip">必填项</h4>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">车牌号码：</label>
            <div class="col-sm-8">
                <input name="plateNo" class="form-control" type="text" placeholder="请输入车牌号码" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">混凝土标号：</label>
            <div class="col-sm-8">
                <input name="concreteType" class="form-control" type="text" placeholder="请输入混凝土标号" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">混凝土方量(m³)：</label>
            <div class="col-sm-8">
                <input name="concreteVolume" class="form-control" type="number" placeholder="请输入混凝土方量" required>
            </div>
        </div>
        <h4 class="label-tip">选填项</h4>
        <div class="form-group">
            <label class="col-sm-3 control-label">公司名称：</label>
            <div class="col-sm-8">
                <input name="companyName" class="form-control" type="text" placeholder="请输入公司名称">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">商混站名：</label>
            <div class="col-sm-8">
                <input name="mixingStation" class="form-control" type="text" placeholder="请输入商混站名">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">机组编号：</label>
            <div class="col-sm-8">
                <input name="machineUnit" class="form-control" type="text" placeholder="请输入机组编号">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">起始坍落度mm：</label>
            <div class="col-sm-8">
                <input name="slumpStart" class="form-control" type="number" placeholder="请输入起始坍落度">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">工地坍落度mm：</label>
            <div class="col-sm-8">
                <input name="slumpEnd" class="form-control" type="number" placeholder="请输入工地坍落度">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    var prefix = ctx + "concrete/register"
    $("#form-register-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-register-add').serialize());
        }
    }
</script>
</body>
</html>